package edu.columbia.cloudbox.ui;

import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;

class Notifications {
	public static AlertDialog infoDialog(Context ctx, String title,
			String message) {
		AlertDialog.Builder b = new AlertDialog.Builder(ctx);
		b.setMessage(message);
		b.setCancelable(false);
		b.setNeutralButton("Ok", new DialogInterface.OnClickListener() {
			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
			}
		});
		b.setTitle(title);
		AlertDialog ad = b.create();
		ad.show();
		return ad;
	}

	public static ProgressDialog progressDialog(Context ctx, String title,
			String message) {
		ProgressDialog dialog = ProgressDialog.show(ctx, title, message, true,
				false);
		return dialog;
	}
}